home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / terms / kermit / b / ckomak.hlp < prev    next >
Encoding:
Text File  |  1993-07-09  |  3.5 KB  |  78 lines

  1. OS/2 C-Kermit 5A(189)                                                 July 1993
  2.  
  3.  
  4.           INSTRUCTIONS FOR BUILDING FROM SOURCE CODE
  5.  
  6. OS/2 C-Kermit can be built using Microsoft C 6.0, IBM C Set/2, or GNU CC.
  7. One makefile supports all three: ckoker.mak.
  8.  
  9. Command                    Development Environment
  10.  
  11. nmake -f ckoker.mak msc    Microsoft C 6.00.  Builds a 16-bit version.
  12. nmake -f ckoker.mak mscd   Microsoft C 6.00, with debugging info included.
  13.  
  14. In the MSC link step, you might get a message about LLIBCEP.LIB not found.
  15. At the LINK prompt, simply type: LLIBCE.
  16.  
  17. nmake -f ckoker.mak ibmc   IBM C Set/2, 32-bit, static linking
  18. nmake -f ckoker.mak ibmcd  IBM C Set/2, 32-bit, static linking, debug info.
  19.  
  20. IBM C/C++ doesn't come with a MAKE program, but you can use Microsoft NMAKE
  21. or DMAKE, etc.
  22.  
  23. nmake -f ckoker.mak gcc    EMX 0.8e + GNU CC 2.2.2, 32-bit, dynamic linking
  24. nmake -f ckoker.mak gccd   Same, debugging info included.
  25.  
  26. Note the -G2 switch in the CFLAGS string.  This builds the program optimized
  27. for the 80286 processor.  When building a 32-bit version with IBM C or GCC,
  28. you can change this to G3 for the 386, to G4 for the 486, and G5 for the
  29. Pentium.  Reportedly, G4 makes the program run noticably faster on the 486 and
  30. above (by optimizing instruction sequences for pipelining) without seriously
  31. affecting its performance on the 386.  The affect of G4 on the 286 is not
  32. known.  However, G4 makes the program about 30K bigger so we normally build
  33. the distribution version without it so it'll fit on the 720K diskette.
  34.  
  35. GNU EMX/GCC does not come with a MAKE program, but Microsoft or IBM NMAKE
  36. can be used, or also the public-domain DMAKE (available from OS/2 archive
  37. sites like ftp-os2.nmsu.edu), or GNU make.  C-Kermit programs built with GNU
  38. CC can only be run on OS/2 systems that have the dynamic libraries from the
  39. OS/2 developers kit on disk.
  40.  
  41. As of version 5A(189), OS/2 C-Kermit supports TCP/IP connections if you have
  42. TCP/IP installed on your OS/2 system.  Linking is still static except for the
  43. TCP/IP library, which is linked dynamically to (a) keep the size of the
  44. program down, and (b) to allow the program to take advantage of updated
  45. versions of TCP/IP without needing to be rebuilt (IBM issues CSD's about once
  46. a month).
  47.  
  48. To build C-Kermit with TCP/IP support (for which you need the IBM TCP/IP
  49. libraries and header files, and probably also IBM C Set/2), edit CKOKER.MAK to
  50. include -DTCPSOCKET and -DTCPIBM in the "DEFINES =" section, and just below
  51. it, "LIBS = " should indicate TCPIPDLL.LIB. 
  52.  
  53. With DEFINES and LIBS set up for a TCP/IP build, an additional file is
  54. produced, called CKOTCP.DLL.  On systems that have TCP/IP installed, this file
  55. can be discarded.  On systems that do NOT have IBM TCP/IP installed, this file
  56. must be renamed to TCPIPDLL.DLL and copied into the C:\OS2\DLL directory.
  57. (NOTE: There is a new INSTALL.CMD script that takes care of all this
  58. automatically for the end user.)
  59.  
  60. A 16-bit version can be produced using the MSC entry with the DEFINES and LIBS
  61. set up for TCP/IP as just described, if you have Microsoft C 6.00 *and* the
  62. IBM TCP/IP libraries and include files on your disk.
  63.  
  64.   If the IBM-supplied TCPIP\INCLUDE\NETLIB.H file contains the following
  65.   line:
  66.  
  67.   #define SIGALRM 0
  68.  
  69.   You must remove it before building the 16-bit version with MSC.
  70.  
  71. The optional SYSLEVEL.CKO files, CKOSYSL.CK1 (16-bit) and CKOSYSL.CK2 (32-bit),
  72. must be created by hand using the OS/2 EDTSYSLV.EXE program.
  73.  
  74. See the comments in the CKOKER.MAK and CKOKER.BWR files for further
  75. instructions.
  76.  
  77. (End of CKOMAK.HLP)
  78.